﻿package org.xhs.report.common.service
{
    import flash.events.*;

    public class PageServiceEvent extends Event
    {
        protected var _pageth:int = -1;
        public static const START_LOADING:String = "START_LOADING";
        public static const DOCINFO_LOADED:String = "DOCINFO_LOADED";
        public static const FILE_DELETED:String = "FILE_DELETED";
        public static const FILE_NO_DATA:String = "FILE_NO_DATA";
        public static const PAGE_LOADED:String = "PAGE_LOADED";
        public static const PAGE_FAILED:String = "PAGE_FAILED";
        public static const FIRST_PARSE_BYTE:String = "FIRST_PARSE_BYTE";
        public static const PARSE_FAILED:String = "PARSE_FAILED";
        public static const BLANKPAGE_ADDED:String = "BLANKPAGE_ADDED";
        public static const PAGE_REARRANGE:String = "PAGE_REARRANGE";

        public function PageServiceEvent(param1:String, param2:Boolean = true, param3:Boolean = false)
        {
            super(param1, param2, param3);
            return;
        }// end function

        override public function toString() : String
        {
            return formatToString("PageDataEvent", "type", "bubbles", "cancelable");
        }// end function

        override public function clone() : Event
        {
            return new PageServiceEvent(type, bubbles, cancelable);
        }// end function

        public function set pageth(param1:int) : void
        {
            this._pageth = param1;
            return;
        }// end function

        public function get pageth() : int
        {
            return this._pageth;
        }// end function

    }
}
